quartz: Remove MAC_OS_X_VERSION_MIN_ALLOWED ifdef
authorKristian Rietveld <kris@gtk.org>
Thu, 28 Jul 2011 15:44:02 +0000 (17:44 +0200)
committerKristian Rietveld <kris@gtk.org>
Thu, 28 Jul 2011 15:44:02 +0000 (17:44 +0200)
I tried to suppress compiler warnings on pre-10.6 machines this way,
but it defeats its purpose when you compile for pre-10.6 machines on
a 10.6 machine.  For now, we have to live with the warnings when
compiling on/for pre-10.6 machines, there does not seem an easy and proper
way to suppress the warnings.

gdk/quartz/gdkwindow-quartz.c

index 5dac054e3708ae6bd29519a3435e9c96fe5d220f..3b7c5e3ae3419729eed8bb8ba0921dba21964d7e 100644 (file)
@@ -2586,13 +2586,11 @@ gdk_quartz_window_set_decorations (GdkWindow       *window,
        * recreating the toplevel. There might be bad side-effects of doing
        * that, but it seems alright.
        */
-#if MAC_OS_X_VERSION_MIN_ALLOWED > MAC_OS_X_VERSION_10_5
       if ([impl->toplevel respondsToSelector:@selector(setStyleMask:)])
         {
           [impl->toplevel setStyleMask:new_mask];
         }
       else
-#endif
         {
           [impl->toplevel release];
           impl->toplevel = [[GdkQuartzNSWindow alloc] initWithContentRect:rect